package com.dp.util;

import java.util.Locale;
import java.util.ResourceBundle;

import com.dp.pub.SysProperty;

public class InterUtil {
	public static String languageStr = SysProperty.getPrep("backendlanguage");
//	public static Locale loc = new Locale(languageStr.substring(0,languageStr.indexOf(",")),languageStr.substring(languageStr.indexOf(",")+1));
	//public static Locale loc = new Locale("en","US");
	public static Locale loc = new Locale(SysProperty.getPrep("sysi18n")!=null?SysProperty.getPrep("sysi18n").split(",")[0]:"zh",SysProperty.getPrep("sysi18n")!=null?SysProperty.getPrep("sysi18n").split(",")[1]:"CN");
	public static ResourceBundle rb = ResourceBundle.getBundle("tt",loc);	
	public static ResourceBundle rb_jsp = ResourceBundle.getBundle("jsp",loc);
	
}
